home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / lisp / akcl_1_6.z / akcl_1_6 / xbin / move-if-changed < prev    next >
Encoding:
Text File  |  1989-08-22  |  162 b   |  16 lines

  1. #!/bin/sh
  2.  
  3. F1=$1
  4. F2=$2
  5.  
  6. if
  7. cmp $1 $2 > /dev/null
  8. then  echo $1 and $2  are identical ;
  9. else
  10. echo $1 and $2 were not the same.
  11. rm -f $2
  12. ln $1 $2
  13. echo ln $1 $2
  14. fi
  15.  
  16.